import http from "@/utils/request";

export default{
    /**
     * 查询报表模板列表
     * @param  params 
     * @returns 
     */
    async getList(params){
        return await http.get("/api/dtbbSjfwIndex/list",params);
    },
    /**
     * 查询数据字典列表树形数据
     * @param  params 
     * @returns 
     */
    async getTreeList(params){
        return await http.get("/api/dtbbSjfwIndex/treeList",params);
    },
    /**
    * 添加
    * @returns
    */
    async add(params){
        return await http.post("/api/dtbbSjfwIndex/add",params)
    },
    
    /**
    * 修改
    * @returns
    */
    async update(params){
        return await http.put("/api/dtbbSjfwIndex/update",params)
    },

    //删除
    async delete(params) {
        return await http.delete('api/dtbbSjfwIndex/delete', params);
        
    },
    


    /**
     * 查询数据服务字段详情列表
     * @param  params 
     * @returns 
     */
    async getListInfo(params){
        return await http.get("/api/dtbbSjfwInfo/list",params);
    },
    /**
    * 添加
    * @returns
    */
    async addInfo(params){
        return await http.post("/api/dtbbSjfwInfo/add",params)
    },
    
    /**
    * 修改
    * @returns
    */
    async updateInfo(params){
        return await http.put("/api/dtbbSjfwInfo/update",params)
    },

    //删除
    async deleteInfo(params) {
        return await http.delete('api/dtbbSjfwInfo/delete', params);
        
    },
    /**
    * 批量添加
    * @returns
    */
    async addList(params){
        return await http.post("/api/dtbbSjfwInfo/addList",params)
    },
    //批量删除
    async Bdelete(params) {
        return await http.post('/api/dtbbSjfwInfo/batchDelete', params);
           
    },


    
    /**
     * 查询数据服务条件
     * @param  params 
     * @returns 
     */
    async getSQLList(params){
        return await http.get("/api/dtbbSjfwCondition/list",params);
    },
    /**
    * 添加
    * @returns
    */
    async addSQL(params){
        return await http.post("/api/dtbbSjfwCondition/add",params)
    },
    /**
    * 修改
    * @returns
    */
    async updateSQL(params){
        return await http.put("/api/dtbbSjfwCondition/update",params)
    },

    //删除
    async deleteSQL(params) {
        return await http.delete('api/dtbbSjfwCondition/delete', params);
        
    },

}